﻿

$(function () {
    $("[id^=sinaWeibo]").click(function () {
        window.open("http://weibo.com/artsuk");
        //        var img = "images/UK_logo.gif";
        //        var rootUrl = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1);
        //        if (rootUrl.indexOf("member") > 0) {
        //            rootUrl = rootUrl.substring(0, rootUrl.indexOf("member"));
        //        }
        //       
        //        sharesina(document.title+" "+ "http://www.uknow.org.cn", rootUrl + img,"http://www.uknow.org.cn");
    });
    $("[id^=kaixin]").click(function () {
        window.open("http://www.kaixin001.com/britishcouncil");
        //        var img = "images/UK_logo.gif";
        //        var rootUrl = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1);
        //        if (rootUrl.indexOf("member") > 0) {
        //            rootUrl = rootUrl.substring(0, rootUrl.indexOf("member"));
        //        }
        //        sharekaixin001(document.title, rootUrl + img, rootUrl + img, document.URL);
    });

    $("[id^=bouban]").click(function () {
        window.open("http://site.douban.com/britishcouncil/");
        //        var img = "images/UK_logo.gif";
        //        var rootUrl = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1);
        //        if (rootUrl.indexOf("member") > 0) {
        //            rootUrl = rootUrl.substring(0, rootUrl.indexOf("member"));
        //        }
        //        sharedouban(document.title, rootUrl + img, rootUrl + img, document.URL);
    });

    $("[id^=qqWebbo]").click(function () {
        window.open("http://t.qq.com/britishcouncil");
        //        var img = "images/UK_logo.gif";
        //        var rootUrl = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1);
        //        if (rootUrl.indexOf("member") > 0) {
        //            rootUrl = rootUrl.substring(0, rootUrl.indexOf("member"));
        //        }
        //        shareqq(document.title, "http://www.uknow.org.cn", rootUrl + img, document.URL);
    });

    $("#Bc").click(function () {
        window.open("http://www.britishcouncil.org.cn/zh/china.htm", "_blank", "", false);
    });
    $("#ContactUs").click(function () {
        window.open("", "_blank", "", false);
    });
    $("#PrivacyPolicy").click(function () {
        window.open("", "_blank", "", false);
    });

});
